package com.supper;

import com.supper.model.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yutao
 * @since 2020/4/13 2:07 下午
 */
public class XmlTest {


    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-context.xml");

        Person person = (Person) applicationContext.getBean("person");
        System.out.println(person);
    }

}
